//
//  RPCCenter.swift
//  Center_RPC
//
//  Created by Flutter on 2021/7/12.
//

import Foundation
import Center_Storage
import Standard

public enum RPCCenter {}

extension RPCCenter: TypeName {}

private extension RPCCenter {
    static let store = StorageCenter.coke[typeName]
}

public extension RPCCenter {
    static func register(cokeContext: JCokeRPCServiceContextual) {
        self.cokeContext = cokeContext
    }

    @DelayInit
    static var cokeContext: JCokeRPCServiceContextual

    static let coke = JCokeRPCService(store: store, context: cokeContext)
}

